package com.TestDemo.Test202203To04;

import java.io.*;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2022/03/04/10:41
 * @Description: 测试10转2
 * @Target:
 */
public class DecToBinTest {
    public static void main(String[] args) throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        int input = 0;
        while ((input = Integer.valueOf(in.readLine()))!=0){
            String s = Integer.toBinaryString(input);
            String s1 = Integer.toHexString(input);
            String s2 = Integer.toOctalString(input);
            System.out.println("10进制："+input+" 二进制："+ s);
            System.out.println("10进制："+input+" 十六进制："+ s1);
            System.out.println("10进制："+input+" 八进制："+ s2);

            System.out.println(Integer.reverse(123456));
            System.out.println(Integer.reverse(123));
            System.out.println(Integer.reverse(38240256));

        }
    }
}
